#restart wsl.

PS C:\windows\system32> wsl --shutdown
PS C:\windows\system32> net stop LxssManager
LxssManager 服务正在停止.
LxssManager 服务已成功停止。

PS C:\windows\system32> net start LxssManager
LxssManager 服务正在启动 .
LxssManager 服务已经启动成功。


#mqtt service start & sent test.
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# mosquitto -c /etc/mosquitto/mosquitto.conf -d
1754875249: Loading config file /etc/mosquitto/conf.d/mosquitto.conf
1754875249: Note: It is recommended to replace `message_size_limit` with `max_packet_size`.
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# ps aux |grep mosquitto
mosquit+  4620  0.0  0.0  14600  2588 ?        Ss   09:20   0:00 mosquitto -c /etc/mosquitto/mosquitto.conf -d
root      4844  0.0  0.0   4092  1904 pts/6    S+   09:21   0:00 grep --color=auto mosquitto
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# kill 4620
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# service mosquitto start
 * Starting network daemon mosquitto                                                                                                                                                   [ OK ] 
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# ps aux |grep mosquitto
mosquit+  4972  0.0  0.0  14228  6636 ?        S    09:22   0:00 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
root      5000  0.0  0.0   4092  1936 pts/6    S+   09:22   0:00 grep --color=auto mosquitto
(.venv) root@PC-20230207TFDZ:/home/release/curr/sub_app# mosquitto_pub -h 127.0.0.1  -t "dataset/kde" -m "hello"

#宿主机的mosquitto 服务可以禁用。 from wsl2, the wsl installed service auto accessable at windows platform.
# services.msc
# Mosquitto Broker

